package ServiceGraph

import "strings"

func SplitWord(query string) (string, string) {

	substance, link := "", ""

	// input likes 低血压的病因
	// extract as 低血压 病因
	splitArr := strings.Split(query, "的")

	substance = splitArr[0]
	link = strings.Split(splitArr[1], "是")[0]
	return substance, link
}